function batchupdate(){
	if(!validateForm()){
		return;
	}
	
	$.ajax({
		type:"post",
		url : contextPath+ 'user/batchupdate',
		data : $("#form").serialize(),
		success:function(data){
			alert(data.msgDesc);
			if(data.opResult=="0"){
				location.href = referer;
			}
		}
	});
}

function validateForm(){
	var flag = true;
	$(".chooseColumn:checked").each(function(){
		var _input = $(this).next().next();
		if(_input.val() == ""){
			alert($(this).next().text().replace("：","")+"不能为空");
			flag = false;
			return flag;
		}
	});
	return flag;
}
